(window.tawkJsonp=window.tawkJsonp||[]).push([["chunk-2d0d2b7c"],{"5a60":function(t,e,o){"use strict";var r=o("2b0e"),n=o("f0b0"),a=function(t){return(299*parseInt(t.slice(1,3),16)+587*parseInt(t.slice(3,5),16)+144*parseInt(t.slice(5,7),16))/1e3>=180?"#000000":"#FFFFFF"};function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var r,n,a,i,s=[],l=!0,c=!1;try{if(a=(o=o.call(t)).next,0===e){if(Object(o)!==o)return;l=!1}else for(;!(l=(r=a.call(o)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,n=t}finally{try{if(!l&&null!=o.return&&(i=o.return(),Object(i)!==i))return}finally{if(c)throw n}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?s(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,r=Array(e);o":null,src:this.isMaxWidget?null:"about:blank",frameborder:"0",scrolling:"no",width:this.width,height:this.height,style:Object.entries(this.styleObject).map((function(t){var e=i(t,2);return e[0]+e[1]})).join(" "),id:this.id,class:this.classString,title:"chat widget",referrerpolicy:"no-referrer-when-downgrade"}})},beforeUpdate:function(){this.iApp&&(this.iApp.children=Object.freeze(this.$slots.default))},mounted:function(){var t=this;this.$eventBus.$on("updateWidgetSettings",(function(){t.reInjectCSSGlobalVariables()}))},methods:{renderChildren:function(){var t=this.$slots.default,e=this.$el.contentDocument.documentElement,o=this.$el.contentDocument.body,n=this.$el.contentDocument.head,i=document.createElement("div"),s=document.createElement("link"),l=document.createElement("link"),c=new r.a({name:"iApp",data:{children:Object.freeze(t)},render:function(t){return t("div",{attrs:{style:"width: 100%; height: 100%;"}},this.children)},store:this.$store,mounted:function(){this.children.length&&this.children[0]&&this.children[0].context&&"function"==typeof this.children[0].context.loaded&&this.children[0].context.loaded()}});s.href=this.cssLink,s.rel="stylesheet",l.href="https://fonts.googleapis.com/css?family=Lato:100,100i,300,300i,400,400i,700,700i,900,900i&subset=latin-ext",o.appendChild(i),o.classList.add("font-lato");var d="1rem",h="0";if(this.$store.getters["widget/isRTL"]&&o.classList.add("tawk-rtl"),this.$store.getters["browserData/mobileBrowserName"]){var g;e.classList.add("tawk-mobile"),o.classList.add("tawk-mobile");var m=null===(g=this.$TawkJSAPI)||void 0===g||null===(g=g.local_API)||void 0===g||null===(g=g.customStyle)||void 0===g?void 0:g.visibility;m&&m.mobile&&m.mobile.maximized&&(m.mobile.maximized.paddingTop&&(d="".concat(m.mobile.maximized.paddingTop,"px")),m.mobile.maximized.paddingBottom&&(h="".concat(m.mobile.maximized.paddingBottom,"px")))}this.$store.getters["widget/language"]&&e.setAttribute("lang",this.$store.getters["widget/language"]);var p=document.createElement("meta");p["http-equiv"]="Content-Type",p.content="text/html; charset=utf-8";var u=document.createElement("meta");u.name="viewport",u.content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no",n.appendChild(p),n.appendChild(u);var w=document.createElement("style");w.type="text/css",w.classList.add("tawk-global-variables");var b=":root {\n\t\t\t\t\t--tawk-header-background-color: ".concat(this.$store.getters["widget/headerBgColor"]," !important;\n\t\t\t\t\t--tawk-header-background-color-alpha: ").concat(this.$store.getters["widget/headerBgColor"],"50 !important;\n\t\t\t\t\t--tawk-header-text-color: ").concat(this.$store.getters["widget/headerTxtColor"]," !important;\n\t\t\t\t\t--tawk-header-override-padding-top: ").concat(d," !important;\n\t\t\t\t\t--tawk-footer-override-padding-bottom: ").concat(h," !important;\n\t\t\t\t}");b+=".tawk-chat-bubble code,\n\t\t\t\t\t\t.tawk-chat-bubble pre {\n\t\t\t\tborder-color: ".concat(a(this.$store.getters["widget/visitorBgColor"]),"40 !important;\n\t\t\t\tbackground-color : ").concat(a(this.$store.getters["widget/visitorBgColor"]),"20 !important;\n\t\t\t}"),b+=".tawk-visitor-chat-bubble {\n\t\t\t\tbackground : ".concat(this.$store.getters["widget/visitorBgColor"]," !important;\n\t\t\t\tcolor : ").concat(this.$store.getters["widget/visitorTxtColor"]," !important;\n\t\t\t}"),b+=".tawk-visitor-chat-bubble .tawk-timeago {\n\t\t\t\tcolor : ".concat(this.$store.getters["widget/visitorTxtColor"]," !important;\n\t\t\t}"),b+=".tawk-agent-chat-bubble {\n\t\t\t\tbackground : ".concat(this.$store.getters["widget/agentBgColor"]," !important;\n\t\t\t\tcolor : ").concat(this.$store.getters["widget/agentTxtColor"]," !important;\n\t\t\t}"),b+=".tawk-agent-chat-bubble .tawk-timeago {\n\t\t\t\tcolor : ".concat(this.$store.getters["widget/agentTxtColor"]," !important;\n\t\t\t}"),b+=".tawk-agent-chat-bubble-dots {\n\t\t\t\tbackground : ".concat(this.$store.getters["widget/agentBgColor"]," !important;\n\t\t\t}"),this.$store.getters["browserData/isIE"]&&this.$store.getters["browserData/version"]<=11&&(b+=".tawk-custom-color-inverse {\n\t\t\t\t\tbackground-color: ".concat(this.$store.getters["widget/headerTxtColor"]," !important;\n\t\t\t\t\tcolor: ").concat(this.$store.getters["widget/headerBgColor"]," !important;\n\t\t\t\t}\n\t\t\t\t.tawk-custom-border-color {\n\t\t\t\t\tborder-color: ").concat(this.$store.getters["widget/headerBgColor"]," !important;\n\t\t\t\t}\n\t\t\t\t.tawk-custom-border-left {\n\t\t\t\t\tborder-left: 5px solid ").concat(this.$store.getters["widget/headerBgColor"]," !important;\n\t\t\t\t}\n\t\t\t\t.tawk-custom-color {\n\t\t\t\t\tbackground-color: ").concat(this.$store.getters["widget/headerBgColor"]," !important;\n\t\t\t\t\tcolor: ").concat(this.$store.getters["widget/headerTxtColor"]," !important;\n\t\t\t\t}\n\t\t\t\t.tawk-custom-text-color {\n\t\t\t\t\tcolor: ").concat(this.$store.getters["widget/headerBgColor"]," !important;\n\t\t\t\t}\n\t\t\t\t.tawk-custom-text-color-inverse {\n\t\t\t\t\tcolor: ").concat(this.$store.getters["widget/headerTxtColor"]," !important;\n\t\t\t\t}\n\t\t\t\t.tawk-custom-image .tawk-image {\n\t\t\t\t\tmax-height: 250px;\n\t\t\t\t}\n\t\t\t\t.tawk-timeago {\n\t\t\t\t\tfont-size: .75rem !important;\n\t\t\t\t\tfont-family: 'Lato', sans-serif !important;\n\t\t\t\t}\n\t\t\t\t.tawk-main-panel .tawk-chat-panel {\n\t\t\t\t\theight: 100%;\n\t\t\t\t}\n\t\t\t\t.tawk-tooltip-hover {\n\t\t\t\t\tmax-width: 120px;\n\t\t\t\t}\n\t\t\t\t.card-container:first-child::before {\n\t\t\t\t\tbackground-color: ").concat(this.$store.getters["widget/headerBgColor"]," !important;\n\t\t\t\t}\n\t\t\t\t.tawk-form-wrapper .tawk-input:-ms-input-placeholder,\n\t\t\t\t.tawk-form-wrapper .tawk-textarea:-ms-input-placeholder {\n\t\t\t\t\topacity: 1 !important;\n\t\t\t\t}\n\t\t\t\t.tawk-home-list-chat-content {\n\t\t\t\t\t-ms-flex-grow:1;\n\t\t\t\t\t-ms-flex: 1;\n\t\t\t\t\twidth: auto;\n\t\t\t\t}\n\t\t\t\t.tawk-home-list-chat-content .tawk-custom-chat-left {\n\t\t\t\t\tflex: 0 0 50%;\n\t\t\t\t\tmax-width: 50%;\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t}\n\t\t\t\t.tawk-home-list-chat-content .tawk-custom-chat-right {\n\t\t\t\t\tflex: 0 0 40%;\n\t\t\t\t\tmax-width: 40%;\n\t\t\t\t\twidth: 100%;\n\t\t\t\t}\n\t\t\t\t.tawk-home-list-chat-content .tawk-custom-chat-right .tawk-timeago {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\tword-wrap: break-word;\n\t\t\t\t\tword-break: all;\n\t\t\t\t\twidth: 100%;\n\t\t\t\t}")),this.$store.getters["browserData/isIE"]&&this.$store.getters["browserData/version"]<=10&&(b+="\n\t\t\t\t\t.tawk-custom-flex-1 {\n\t\t\t\t\t\tflex: 0 0 auto !important;\n\t\t\t\t\t}\n\t\t\t\t\t.tawk-input, .tawk-select, .tawk-textarea, .tawk-chatinput-editor, .tawk-form-label {\n\t\t\t\t\t\tfont-size: .812rem !important;\n\t\t\t\t\t\tfont-family: 'Lato', sans-serif !important;\n\t\t\t\t\t}\n\t\t\t\t"),w.appendChild(document.createTextNode(b)),this.$TawkJSAPI.local_API.disableWidgetFont||n.appendChild(l),n.appendChild(s),s.onload=function(){c.$mount(i)},n.appendChild(w),this.iApp=c},reInjectCSSGlobalVariables:function(){var t=this.$el.contentDocument.head,e=t.querySelector(".tawk-global-variables");e&&e.parentNode.removeChild(e);var o="1rem",r="0";if(this.$store.getters["browserData/mobileBrowserName"]){var n,a=null===(n=this.$TawkJSAPI)||void 0===n||null===(n=n.local_API)||void 0===n||null===(n=n.customStyle)||void 0===n?void 0:n.visibility;a&&a.mobile&&a.mobile.maximized&&(a.mobile.maximized.paddingTop&&(o="".concat(a.mobile.maximized.paddingTop,"px")),a.mobile.maximized.paddingBottom&&(r="".concat(a.mobile.maximized.paddingBottom,"px")))}var i=document.createElement("style");i.type="text/css",i.classList.add("tawk-global-variables");var s=":root {\n\t\t\t\t\t--tawk-header-background-color: ".concat(this.$store.getters["widget/headerBgColor"]," !important;\n\t\t\t\t\t--tawk-header-background-color-alpha: ").concat(this.$store.getters["widget/headerBgColor"],"50 !important;\n\t\t\t\t\t--tawk-header-text-color: ").concat(this.$store.getters["widget/headerTxtColor"]," !important;\n\t\t\t\t\t--tawk-header-override-padding-top: ").concat(o," !important;\n\t\t\t\t\t--tawk-footer-override-padding-bottom: ").concat(r," !important;\n\t\t\t\t}");s+=".tawk-visitor-chat-bubble {\n\t\t\t\tbackground : ".concat(this.$store.getters["widget/visitorBgColor"]," !important;\n\t\t\t\tcolor : ").concat(this.$store.getters["widget/visitorTxtColor"]," !important;\n\t\t\t}"),s+=".tawk-visitor-chat-bubble .tawk-timeago {\n\t\t\t\tcolor : ".concat(this.$store.getters["widget/visitorTxtColor"]," !important;\n\t\t\t}"),s+=".tawk-agent-chat-bubble {\n\t\t\t\tbackground : ".concat(this.$store.getters["widget/agentBgColor"]," !important;\n\t\t\t\tcolor : ").concat(this.$store.getters["widget/agentTxtColor"]," !important;\n\t\t\t}"),s+=".tawk-agent-chat-bubble .tawk-timeago {\n\t\t\t\tcolor : ".concat(this.$store.getters["widget/agentTxtColor"]," !important;\n\t\t\t}"),s+=".tawk-agent-chat-bubble-dots {\n\t\t\t\tbackground : ".concat(this.$store.getters["widget/agentBgColor"]," !important;\n\t\t\t}"),i.appendChild(document.createTextNode(s)),t.appendChild(i)}}}),c=o("2877"),d=Object(c.a)(l,void 0,void 0,!1,null,null,null);e.a=d.exports}}]);